package com.cxy.service.Impl;

import com.cxy.context.BaseContext;
import com.cxy.dto.RecordDTO;
import com.cxy.dto.RecordPageDTO;
import com.cxy.mapper.RecordMapper;
import com.cxy.result.PageResult;
import com.cxy.service.RecordService;
import com.cxy.vo.RecordVO;
import com.cxy.vo.SeeAssessVO;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class RecordServiceImpl implements RecordService {
    @Autowired
    private RecordMapper recordMapper;
    /**
     * 查询所有评议信息
     * @return
     */
    public PageResult selectAll(RecordPageDTO recordPageDTO) {
        PageHelper.startPage(recordPageDTO.getPage(),recordPageDTO.getPageSize());
        Page<RecordVO>page=recordMapper.page(recordPageDTO);
        return new PageResult(page.getTotal(),page.getResult());
    }

}
